package com.bestcem.xm.member.constant;

import com.bestcem.xm.member.enums.MemberTypeEnum;
import com.google.common.collect.Sets;

import java.util.Set;

/**
 * @author dc.wang <dc.wang@idiaoyan.com>
 * @version V1.0
 * @description 字段展示名称常量类
 * @date 2021/7/21
 */
public class FieldDisplayNameConstant {
    private static final Set<String> BASE_FIELD_NAMES = Sets.newHashSet("姓名","性别","省份","城市","区县","街道信息","手机号","邮箱","出生日期","年龄","所属组织");

    private static final Set<String> INDIVIDUAL_FIELD_NAMES;

    private static final Set<String> INSTITUTE_FIELD_NAMES;

    private static final Set<String> INTERIOR_FIELD_NAMES;

    private static final Set<String> PROJECT_FIELD_NAMES;

    private static final Set<String> COMPUTE_FIELD_NAMES;

    static {
        INDIVIDUAL_FIELD_NAMES = Sets.newHashSet("微信OpenID","微信AppID","支付宝ID");
        INDIVIDUAL_FIELD_NAMES.addAll(BASE_FIELD_NAMES);
        INSTITUTE_FIELD_NAMES = Sets.newHashSet("机构对接人","机构名称","所属部门","职位","省份","城市","街道信息","手机号","邮箱","所属组织");
        INTERIOR_FIELD_NAMES = Sets.newHashSet("员工编号","员工状态");
        INTERIOR_FIELD_NAMES.addAll(INSTITUTE_FIELD_NAMES);
        PROJECT_FIELD_NAMES = Sets.newHashSet("项目编号","项目名称","立项类型","合同编号","合同金额","立项时间","客户经理","甲方项目经理","项目经理手机","项目状态","计划开始时间","实际开始时间","验收时间");
        COMPUTE_FIELD_NAMES = Sets.newHashSet("答题率","答题完成率","收到问卷数","开始答题问卷数");
    }

    public static Set<String> getMemberFixFieldNames(MemberTypeEnum memberTypeEnum){
        switch (memberTypeEnum){
            case INDIVIDUAL: return INDIVIDUAL_FIELD_NAMES;
            case INSTITUTION: return INSTITUTE_FIELD_NAMES;
            case INTERIOR: return INTERIOR_FIELD_NAMES;
            default: return PROJECT_FIELD_NAMES;
        }
    }

    public static Set<String> getComputeFixFieldNames(){
        return COMPUTE_FIELD_NAMES;
    }
}
